<!--#
layout("/layouts/platform.html"){
#-->
<style>
    .left_aside {
        width: 132px;
        height: 500px;
    }

    .left_tree {
        margin-top: 10px;
        margin-left: -5px;
    }

    /*当前分类标识颜色*/
    /*.left_tree .is-current .el-tree-node__content{*/
    /*    background-color: #F5F7FA;*/
    /*}*/

    .el-tree-node {
        padding-top: 7px;
    }

    .note {
        width: 100%;
        height: 320px;
    }

    .el-upload input[type=file] {
        display: none;
    }

    .avatar-uploader .el-upload {
        border: 1px dashed #d9d9d9;
        border-radius: 6px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }

    .avatar-uploader .el-upload:hover {
        border-color: #409EFF;
    }

    .avatar-uploader-icon {
        font-size: 28px;
        color: #8c939d;
        width: 128px;
        height: 128px;
        line-height: 128px;
        text-align: center;
    }

    .avatar {
        width: 128px;
        height: 128px;
        display: block;
    }
</style>
<div id="app" v-cloak>

    <el-row class="el-table-container">
        <el-form :model="formData" style="margin: 0 50px" :rules="formRules" label-width="250px" label-position="left">
            <el-row>
                <el-col :span="12">
                    <div class="grid-content bg-purple">
                        <el-collapse accordion>
                            <!--基础配置-->
                            <el-collapse-item title="基础配置">
                                <el-form-item prop="debug" label="Debug" title="跳过token校验">
                                    <el-switch
                                            v-model="formData.debug"
                                            active-color="green"
                                            inactive-color="red">
                                    </el-switch>
                                </el-form-item>
                                <el-form-item prop="isNeedInviteCode" label="注册邀请码必填" title="注册是否需要邀请码">
                                    <el-switch
                                            v-model="formData.isNeedInviteCode"
                                            active-color="green"
                                            inactive-color="red">
                                    </el-switch>
                                </el-form-item>
                                <el-form-item prop="withdrawFee" label="提现手续费(百分之)">
                                    <el-input-number style="width: 200px"
                                                     v-model="formData.withdrawFee"
                                                     controls-position="right"
                                                     :min="0"></el-input-number>
                                </el-form-item>
                                <el-form-item prop="loginValidTime" label="Token有效时长（分钟）">
                                    <el-input-number style="width: 200px"
                                                     v-model="formData.loginValidTime"
                                                     controls-position="right"
                                                     :min="0"></el-input-number>
                                </el-form-item>
                                <el-form-item prop="recruitAmount" label="招募金额">
                                    <el-input-number style="width: 200px"
                                                     v-model="formData.recruitAmount"
                                                     controls-position="right"
                                                     :min="0"></el-input-number>
                                </el-form-item>
                                <el-form-item prop="serviceFee" label="服务费(百分之)">
                                    <el-input-number style="width: 200px"
                                                     v-model="formData.serviceFee"
                                                     controls-position="right"
                                                     :min="0"></el-input-number>
                                </el-form-item>
                                <el-form-item prop="onlyWhiteList" label="后台只允许白名单访问">
                                    <el-switch
                                            v-model="formData.onlyWhiteList"
                                            active-color="green"
                                            inactive-color="red">
                                    </el-switch>
                                </el-form-item>
                            </el-collapse-item>
                            <!--ERC20-->
                            <el-collapse-item title="ERC20配置">
                                <el-form-item prop="ercUrl" label="节点地址" title="http://api-cn.etherscan.com/">
                                    <el-input style="width: 200px"
                                              v-model="formData.ercUrl"
                                              controls-position="right"
                                              :min="0"></el-input>
                                </el-form-item>
                                <el-form-item prop="ercApiKey" label="节点API访问令牌">
                                    <el-input style="width: 200px"
                                              v-model="formData.ercApiKey"
                                              controls-position="right"
                                              :min="0"></el-input>
                                </el-form-item>
                            </el-collapse-item>
                            <!--返佣配置-->
                            <el-collapse-item title="返佣配置">
                                <el-form-item prop="rebateValidLayer" label="返佣有效层级">
                                    <el-input-number style="width: 200px"
                                                     v-model="formData.rebateValidLayer"
                                                     controls-position="right"
                                                     :min="0"></el-input-number>
                                </el-form-item>
                                <el-form-item prop="superRate" label="返佣比例(万分之)">
                                    <el-input-number style="width: 200px"
                                                     v-model="formData.superRate"
                                                     controls-position="right"
                                                     :min="0"></el-input-number>
                                </el-form-item>
                                <el-form-item prop="levelRate" label="层级比例(百分之)">
                                    <el-input-number style="width: 200px"
                                                     v-model="formData.levelRate"
                                                     controls-position="right"
                                                     :min="0"></el-input-number>
                                </el-form-item>
                            </el-collapse-item>
                            <!--聊天配置-->
                            <el-collapse-item title="聊天配置">
                                <el-form-item prop="userChatMsgKeepDayNumber" label="客服聊天记录保留天数">
                                    <el-input-number style="width: 200px"
                                                     v-model="formData.userChatMsgKeepDayNumber"
                                                     controls-position="right"
                                                     :min="0"></el-input-number>
                                </el-form-item>
                                <el-form-item prop="groupLogKeepDayNumber" label="群聊天记录保留天数">
                                    <el-input-number style="width: 200px"
                                                     v-model="formData.groupLogKeepDayNumber"
                                                     controls-position="right"
                                                     :min="0"></el-input-number>
                                </el-form-item>
                            </el-collapse-item>
                            <!--波胆配置-->
                            <el-collapse-item title="波胆配置">
                                <el-form-item prop="fullPdFormula" label="全场波胆赔率">
                                    <el-input style="width: 200px"
                                              v-model="formData.fullPdFormula"
                                              controls-position="right"
                                              :min="0"></el-input>
                                </el-form-item>
                                <el-form-item prop="halfPdFormula" label="半场波胆赔率">
                                    <el-input style="width: 200px"
                                              v-model="formData.halfPdFormula"
                                              controls-position="right"
                                              :min="0"></el-input>
                                </el-form-item>
                                <el-form-item prop="fullScoreFormula" label="全场总入球赔率">
                                    <el-input style="width: 200px"
                                              v-model="formData.fullScoreFormula"
                                              controls-position="right"
                                              :min="0"></el-input>
                                </el-form-item>
                            </el-collapse-item>
                            <!--邮箱配置-->
                            <el-collapse-item title="邮箱配置">
                                <el-form-item prop="emailHost" label="邮箱地址">
                                    <el-input maxlength="32"
                                              placeholder="请输入邮箱地址"
                                              v-model="formData.emailHost"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="emailPort" label="邮箱端口">
                                    <el-input maxlength="32"
                                              placeholder="请输入邮箱端口"
                                              v-model="formData.emailPort"
                                              type="number">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="emailUser" label="用户">
                                    <el-input maxlength="32"
                                              placeholder="请输入用户"
                                              v-model="formData.emailUser"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="emailPassword" label="密码">
                                    <el-input maxlength="32"
                                              placeholder="请输入密码"
                                              v-model="formData.emailPassword"
                                              show-password
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="emailTitle" label="邮件标题">
                                    <el-input maxlength="32"
                                              placeholder="请输入邮件标题"
                                              v-model="formData.emailTitle"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="emailContent" label="邮件内容">
                                    <el-input maxlength="128"
                                              placeholder="邮件内容"
                                              v-model="formData.emailContent"
                                              type="textarea">
                                    </el-input>
                                </el-form-item>
                            </el-collapse-item>
                            <!--ftp配置-->
                            <el-collapse-item title="ftp配置">
                                <el-form-item prop="ftpHost" label="ftp地址">
                                    <el-input maxlength="32"
                                              placeholder="ftp地址"
                                              v-model="formData.ftpHost"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="ftpPort" label="ftp端口">
                                    <el-input-number style="width: 200px"
                                                     v-model="formData.ftpPort"
                                                     controls-position="right"
                                                     :min="0">
                                    </el-input-number>
                                </el-form-item>
                                <el-form-item prop="ftpUserName" label="ftp用户">
                                    <el-input maxlength="32"
                                              placeholder="请输入用户名"
                                              v-model="formData.ftpUserName"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="ftpPassword" label="ftp密码">
                                    <el-input maxlength="32"
                                              placeholder="请输入密码"
                                              v-model="formData.ftpPassword"
                                              show-password
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="ftpUploadPath" label="上传文件指定路径">
                                    <el-input maxlength="128"
                                              placeholder="请输入指定路径"
                                              v-model="formData.ftpUploadPath"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                            </el-collapse-item>
                            <!--ONE_WALLET配置-->
                            <el-collapse-item title="壹钱包配置">
                                <el-form-item prop="oneWalletToPayUrl" label="壹钱包充值接口地址">
                                    <el-input maxlength="256"
                                              placeholder="壹钱包充值接口地址"
                                              v-model="formData.oneWalletToPayUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="oneWalletToWithDrawUrl" label="壹钱包提现接口地址">
                                    <el-input maxlength="256"
                                              placeholder="壹钱包提现接口地址"
                                              v-model="formData.oneWalletToWithDrawUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="oneWalletSafeCode" label="壹钱包商家安全码">
                                    <el-input maxlength="256"
                                              placeholder="壹钱包商家安全码"
                                              v-model="formData.oneWalletSafeCode"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="oneWalletRechargeNotifyUrl" label="壹钱包充值回调地址">
                                    <el-input maxlength="256"
                                              placeholder="壹钱包充值回调地址"
                                              v-model="formData.oneWalletRechargeNotifyUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="oneWalletWithDrawNotifyUrl" label="壹钱包提现回调地址">
                                    <el-input maxlength="256"
                                              placeholder="壹钱包提现回调地址"
                                              v-model="formData.oneWalletWithDrawNotifyUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>

                            </el-collapse-item>
                            <!--XINDO_VND配置-->
                            <el-collapse-item title="鑫都泰国">
                                <el-form-item prop="xindovndToPayUrl" label="鑫都泰国充值接口地址">
                                    <el-input maxlength="256"
                                              placeholder="鑫都泰国充值接口地址"
                                              v-model="formData.xindovndToPayUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="xindovndRechargeNotifyUrl" label="鑫都泰国充值回调地址">
                                    <el-input maxlength="256"
                                              placeholder="鑫都泰国充值回调地址"
                                              v-model="formData.xindovndRechargeNotifyUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="xindovndToWithdrawUrl" label="鑫都泰国提现接口地址">
                                    <el-input maxlength="256"
                                              placeholder="鑫都泰国提现接口地址"
                                              v-model="formData.xindovndToWithdrawUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="xindovndWithdrawNotifyUrl" label="鑫都泰国提现回调地址">
                                    <el-input maxlength="256"
                                              placeholder="鑫都泰国提现回调地址"
                                              v-model="formData.xindovndWithdrawNotifyUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="xindovndPaytype" label="鑫都泰国支付方式">
                                    <el-input maxlength="256"
                                              placeholder="鑫都泰国支付方式"
                                              v-model="formData.xindovndPaytype"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="xindovndMerchant" label="鑫都泰国商户号">
                                    <el-input maxlength="256"
                                              placeholder="鑫都泰国商户号"
                                              v-model="formData.xindovndMerchant"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="xindovndSecret" label="鑫都泰国商户秘钥">
                                    <el-input maxlength="256"
                                              placeholder="鑫都泰国商户秘钥"
                                              v-model="formData.xindovndSecret"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                            </el-collapse-item>
                            <!-- elephant配置-->
                            <el-collapse-item title="大象支付">
                                <el-form-item prop=" elephantToPayUrl" label="大象支付充值接口地址">
                                    <el-input maxlength="256"
                                              placeholder="大象支付充值接口地址"
                                              v-model="formData.elephantToPayUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" elephantRechargeNotifyUrl" label="大象支付充值回调地址">
                                    <el-input maxlength="256"
                                              placeholder="大象支付充值回调地址"
                                              v-model="formData.elephantRechargeNotifyUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" elephantToWithdrawUrl" label="大象支付提现接口地址">
                                    <el-input maxlength="256"
                                              placeholder="大象支付提现接口地址"
                                              v-model="formData.elephantToWithdrawUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" elephantWithdrawNotifyUrl" label="大象支付提现回调地址">
                                    <el-input maxlength="256"
                                              placeholder="大象支付提现回调地址"
                                              v-model="formData.elephantWithdrawNotifyUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" elephantPaytype" label="大象支付支付方式">
                                    <el-input maxlength="256"
                                              placeholder="大象支付支付方式"
                                              v-model="formData.elephantPaytype"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" elephantMerchant" label="大象支付商户号">
                                    <el-input maxlength="256"
                                              placeholder="大象支付商户号"
                                              v-model="formData.elephantMerchant"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" elephantSecret" label="大象支付商户秘钥">
                                    <el-input maxlength="256"
                                              placeholder="大象支付商户秘钥"
                                              v-model="formData.elephantSecret"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                            </el-collapse-item>
                            <!-- GlobalPay配置-->
                            <el-collapse-item title="GlobalPay">
                                <el-form-item prop=" globalPayToPayUrl" label="GlobalPay充值地址">
                                    <el-input maxlength="256"
                                              placeholder="GlobalPay充值地址"
                                              v-model="formData.globalPayToPayUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" globalPayRechargeNotifyUrl" label="GlobalPay充值回调地址">
                                    <el-input maxlength="256"
                                              placeholder="GlobalPay充值回调地址"
                                              v-model="formData.globalPayRechargeNotifyUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" globalPayToWithdrawUrl" label="GlobalPay提现接口地址">
                                    <el-input maxlength="256"
                                              placeholder="GlobalPay提现接口地址"
                                              v-model="formData.globalPayToWithdrawUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" globalPayWithdrawNotifyUrl" label="GlobalPay提现回调地址">
                                    <el-input maxlength="256"
                                              placeholder="GlobalPay提现回调地址"
                                              v-model="formData.globalPayWithdrawNotifyUrl"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" globalPayPaytype" label="GlobalPay支付方式">
                                    <el-input maxlength="256"
                                              placeholder="GlobalPay支付方式"
                                              v-model="formData.globalPayPaytype"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" globalPayMerchant" label="GlobalPay商户号">
                                    <el-input maxlength="256"
                                              placeholder="GlobalPay商户号"
                                              v-model="formData.globalPayMerchant"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop=" globalPaySecret" label="GlobalPay商户秘钥">
                                    <el-input maxlength="256"
                                              placeholder="GlobalPay商户秘钥"
                                              v-model="formData.globalPaySecret"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                            </el-collapse-item>
                            <!--皇冠数据获取-->
                            <el-collapse-item title="皇冠数据获取">
                                <el-form-item prop="crawlerAddress" label="爬虫数据服连接地址">
                                    <el-input maxlength="256"
                                              placeholder="爬虫数据服连接地址"
                                              v-model="formData.crawlerAddress"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="crawlerNo" label="爬虫数据服务明文序号">
                                    <el-input maxlength="256"
                                              placeholder="爬虫数据服务明文序号"
                                              v-model="formData.crawlerNo"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                                <el-form-item prop="crawlerSecret" label="爬虫数据服务加密密钥">
                                    <el-input maxlength="256"
                                              placeholder="爬虫数据服务加密密钥"
                                              v-model="formData.crawlerSecret"
                                              type="text">
                                    </el-input>
                                </el-form-item>
                            </el-collapse-item>
                        </el-collapse>
                    </div>
                </el-col>
            </el-row>
        </el-form>
    </el-row>
    <el-foot>
        <el-col :span="8">
            <div class="grid-content bg-purple">
                <span>&nbsp;</span>
            </div>
        </el-col>
        <el-col :span="8">
            <div class="grid-content bg-purple-light">
                <el-button @click="forDefault()">恢复默认</el-button>
                <el-button @click="init()">重置</el-button>
                <el-button type="primary" @click="doEdit">确 定</el-button>
            </div>
        </el-col>
        <el-col :span="8">
            <div class="grid-content bg-purple">
                <span>&nbsp;</span>
            </div>
        </el-col>
    </el-foot>
</div>
<script>
    let paramVerify = new Vue({
        el: "#app",
        data: function () {
            let self = this;
            return {
                formData: {
                    debug: true,
                    onlyWhiteList: false,
                    delFlag: false,
                    emailContent: "CODE:[%s]",
                    emailHost: "smtp.yishenhan.cn",
                    emailPassword: "test1234",
                    emailPort: 25,
                    emailTitle: "BALL-GOLDEN",
                    emailUser: "test@yishenhan.cn",
                    ercApiKey: "IKK1B5Q5ZPDKVUYE9RUJCBN53RVKZHXXJQ",
                    ercUrl: "http://api-cn.etherscan.com/",
                    ftpHost: "192.168.0.122",
                    ftpPassword: "123456",
                    ftpPort: 21,
                    ftpUploadPath: "/upload/",
                    ftpUserName: "test",
                    fullPdFormula: "50/odds",
                    fullScoreFormula: "10/odds",
                    groupLogKeepDayNumber: 30,
                    halfPdFormula: "20/odds",
                    id: "4eb3865e029f495f9c8677cee17255e0",
                    isNeedInviteCode: false,
                    levelRate: 50,
                    loginValidTime: 60,
                    oneWalletRechargeNotifyUrl: "http://xulh.ngrok.wendal.cn/open/oneWallet/recharge/notify",
                    oneWalletSafeCode: "QyCqaNGPgw3hPtASm4eE6g==",
                    oneWalletToPayUrl: "https://api-tg.100scrop.tech/92-d10/SH/sendPay",
                    oneWalletToWithDrawUrl: "https://api-tg.100scrop.tech/92-d10/SH/sendWithdraw",
                    oneWalletWithDrawNotifyUrl: "http://xulh.ngrok.wendal.cn/open/oneWallet/withdraw/notify",
                    opAt: 1603347788,
                    opBy: "",
                    rebateValidLayer: 10,
                    recruitAmount: 100000,
                    serviceFee: 5,
                    superRate: 1000,
                    userChatMsgKeepDayNumber: 30,
                    withdrawFee: 1.25,
                    xindovndMerchant: "a56d0a95970f4defb43e9faa1630a601",
                    xindovndPaytype: "promptpay",
                    xindovndRechargeNotifyUrl: "http://xulh.ngrok.wendal.cn/open/xindovnd/recharge/notify",
                    xindovndSecret: "e86523fe319c4232a168b13e99984d04",
                    xindovndToPayUrl: "http://www.xindovnd.com/pay",
                    xindovndToWithdrawUrl: "http://www.xindovnd.com/transfer/apply",
                    xindovndWithdrawNotifyUrl: "http://xulh.ngrok.wendal.cn/open/xindovnd/withdraw/notify",
                    crawlerAddress: "ws://127.0.0.1:8087/ws",
                    crawlerNo: "1s",
                    crawlerSecret: "",
                    elephantToPayUrl: "https://www.elephant168.com/pay",
                    elephantRechargeNotifyUrl: "https://m.ballgold365.com/open/elephant/recharge/notify",
                    elephantToWithdrawUrl: "https://www.elephant168.com/transfer/apply",
                    elephantWithdrawNotifyUrl: "https://m.ballgold365.com/open/elephant/withdraw/notify",
                    elephantPaytype: "promptpay",
                    elephantMerchant: "9bcfc15af3d94a3bb41e9e3384a34bf6",
                    elephantSecret: "0e33337380884479acaf4c3c02b84515",
                    globalPayToPayUrl: "http://zvfdh.yudrsu.com/ty/orderPay",
                    globalPayRechargeNotifyUrl: "https://m.ballgold365.com/open/globalPay/recharge/notify",
                    globalPayToWithdrawUrl: "http://wrysc.yudrsu.com/withdraw/singleOrder",
                    globalPayWithdrawNotifyUrl: "https://m.ballgold365.com/open/globalPay/withdraw/notify",
                    globalPayPaytype: "ynEbank",
                    globalPayMerchant: "gm761100000036803",
                    globalPaySecret: "2470F58F42B06D85C4B53E0DC4F54B23",
                },
                defaultFormData: {
                    debug: true,
                    delFlag: false,
                    emailContent: "CODE:[%s]",
                    emailHost: "smtp.yishenhan.cn",
                    emailPassword: "test1234",
                    emailPort: 25,
                    emailTitle: "BALL-GOLDEN",
                    emailUser: "test@yishenhan.cn",
                    ercApiKey: "IKK1B5Q5ZPDKVUYE9RUJCBN53RVKZHXXJQ",
                    ercUrl: "http://api-cn.etherscan.com/",
                    crawlerAddress: "ws://127.0.0.1:8087/ws",
                    crawlerNo: "1s",
                    crawlerSecret: "",
                    ftpHost: "192.168.0.122",
                    ftpPassword: "123456",
                    ftpPort: 21,
                    ftpUploadPath: "/upload/",
                    ftpUserName: "test",
                    fullPdFormula: "50/odds",
                    fullScoreFormula: "10/odds",
                    groupLogKeepDayNumber: 30,
                    halfPdFormula: "20/odds",
                    id: "4eb3865e029f495f9c8677cee17255e0",
                    isNeedInviteCode: false,
                    levelRate: 50,
                    loginValidTime: 60,
                    oneWalletRechargeNotifyUrl: "http://xulh.ngrok.wendal.cn/open/oneWallet/recharge/notify",
                    oneWalletSafeCode: "QyCqaNGPgw3hPtASm4eE6g==",
                    oneWalletToPayUrl: "https://api-tg.100scrop.tech/92-d10/SH/sendPay",
                    oneWalletToWithDrawUrl: "https://api-tg.100scrop.tech/92-d10/SH/sendWithdraw",
                    oneWalletWithDrawNotifyUrl: "http://xulh.ngrok.wendal.cn/open/oneWallet/withdraw/notify",
                    opAt: 1603347788,
                    opBy: "",
                    rebateValidLayer: 10,
                    recruitAmount: 100000,
                    serviceFee: 5,
                    superRate: 1000,
                    userChatMsgKeepDayNumber: 30,
                    withdrawFee: 1.25,
                    xindovndMerchant: "a56d0a95970f4defb43e9faa1630a601",
                    xindovndPaytype: "promptpay",
                    xindovndRechargeNotifyUrl: "http://xulh.ngrok.wendal.cn/open/xindovnd/recharge/notify",
                    xindovndSecret: "e86523fe319c4232a168b13e99984d04",
                    xindovndToPayUrl: "http://www.xindovnd.com/pay",
                    xindovndToWithdrawUrl: "http://www.xindovnd.com/transfer/apply",
                    xindovndWithdrawNotifyUrl: "http://xulh.ngrok.wendal.cn/open/xindovnd/withdraw/notify",
                    elephantToPayUrl: "https://www.elephant168.com/pay",
                    elephantRechargeNotifyUrl: "https://m.ballgold365.com/open/elephant/recharge/notify",
                    elephantToWithdrawUrl: "https://www.elephant168.com/transfer/apply",
                    elephantWithdrawNotifyUrl: "https://m.ballgold365.com/open/elephant/withdraw/notify",
                    elephantPaytype: "promptpay",
                    elephantMerchant: "9bcfc15af3d94a3bb41e9e3384a34bf6",
                    elephantSecret: "0e33337380884479acaf4c3c02b84515",
                    globalPayToPayUrl: "http://zvfdh.yudrsu.com/ty/orderPay",
                    globalPayRechargeNotifyUrl: "https://m.ballgold365.com/open/globalPay/recharge/notify",
                    globalPayToWithdrawUrl: "http://wrysc.yudrsu.com/withdraw/singleOrder",
                    globalPayWithdrawNotifyUrl: "https://m.ballgold365.com/open/globalPay/withdraw/notify",
                    globalPayPaytype: "ynEbank",
                    globalPayMerchant: "gm761100000036803",
                    globalPaySecret: "2470F58F42B06D85C4B53E0DC4F54B23",
                },
                fileType: ['jpg', 'png', 'jpeg', 'gif'],
                formRules: {
                    emailContent: [
                        {required: true, message: '请输入邮箱内容', trigger: ['blur', 'change']},
                        {pattern: /%s/, message: '内容必须包含"%s"'}
                    ],
                    ftpUploadPath: [
                        {required: true, message: '请输入上传文件指定路径', trigger: ['blur', 'change']},
                        {pattern: /^\/.*\/$/, message: '请以"/"开头并结尾'}
                    ]
                },
            }
        },
        methods: {
            init: function () {//加载数据
                let self = this;
                sublime.showLoadingbar();//显示loading
                $.post(base + "/platform/sys/param/data", function (data) {
                    sublime.closeLoadingbar();//关闭loading
                    if (data.code === 0) {
                        for (let dataKey in data.data) {
                            let val = data.data[dataKey];
                            if (val != null) self.formData[dataKey] = val;
                        }
                    }
                }, "json");
            },
            doEdit: function () {
                let self = this;
                $.post(base + "/platform/sys/param/editDo", self.formData, function (data) {
                    self.$message({
                        message: data.msg,
                        type: data.code == 0 ? 'success' : 'error'
                    });
                }, "json");
            },
            forDefault: function () {
                for (let dataKey in this.defaultFormData) {
                    let value = this.defaultFormData[dataKey];
                    if (value != null) this.formData[dataKey] = value;
                }
            },
        },
        created: function () {
            this.init();
        }
    });
</script>
<!--#
}
#-->